package com.cloud.core.utils;

import com.alibaba.fastjson.JSONObject;

/**
 * 应用模块名称
 * Copyright: Copyright (C) 2020 DLANGEL, Inc. All rights reserved.
 * Company: 大连安琪科技有限公司
 *
 * @author Rex
 * @since 2020/4/21 17:37
 */
public class CustomStringUtils {

    /**
     * 获取aop参数字符串
     *
     * @param obj
     * @return
     * @author Rex
     */
    public static String getArgs(Object obj) {
        StringBuilder stringBuilder = new StringBuilder();
        if (null != obj) {
            String str = JSONObject.toJSONString(obj);
            stringBuilder.append(str);
        }
        String result = stringBuilder.toString();
        return result;
    }
}
